/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package test;

import gamecore.GameCore;
import gamecore.clocks.GameClock;
import gamecore.exceptions.CanvasNotInitializedException;
import gamecore.exceptions.ClockNotInitializedException;
import gamecore.exceptions.GameCoreSleepInterruptedException;
import gamecore.exceptions.GraphicsFromCanvasIsNullException;
import gamecore.exceptions.GraphicsFromImageIsNullException;
import gamecore.exceptions.ImageForRenderizeIsNullException;
import java.awt.Graphics;

/**
 *
 * @author Administrador
 */
public class MyCore extends GameCore {

	public boolean mostrar = false;

	public MyCore(GameClock gameClock){ super(gameClock); }


	@Override
	public void gameRunningUpdate() {
		if ( mostrar ) System.out.println("UPDATE: Running");
	}

	@Override
	public void gamePausedUpdate() {
		if ( mostrar ) System.out.println("UPDATE: Paused");
	}

	@Override
	public void gameOverUpdate() {
		if ( mostrar ) System.out.println("UPDATE: Over");
	}

	@Override
	public void gameRunningRenderize(Graphics g) {
		if ( mostrar ) System.out.println("RENDERIZE: Running");
	}

	@Override
	public void gamePausedRenderize(Graphics g) {
		if ( mostrar ) System.out.println("RENDERIZE: Paused");
	}

	@Override
	public void gameOverRenderize(Graphics g) {
		if ( mostrar ) System.out.println("RENDERIZE: Over");
	}

	@Override
	public void exceptionCanvasNotInitialized(CanvasNotInitializedException e) { System.out.println("ERROR." + e); }

	@Override
	public void exceptionClockNotInitialized(ClockNotInitializedException e) { System.out.println("ERROR." + e); }

	@Override
	public void exceptionGameCoreSleepInterrupted(GameCoreSleepInterruptedException e) {System.out.println( "ERROR." + e); }

	@Override
	public void exceptionGraphicsFromImageIsNull(GraphicsFromImageIsNullException e) { System.out.println("ERROR." + e); }

	@Override
	public void exceptionGraphicsFromCanvasIsNull(GraphicsFromCanvasIsNullException e) { System.out.println("ERROR." + e); }

	@Override
	public void exceptionImageForRenderizeIsNull(ImageForRenderizeIsNullException e) { System.out.println("ERROR." + e); }

}
